using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;

public class DebugInputAction : MonoBehaviour
{
    [SerializeField] private InputAction _inputAction;
    [SerializeField] private UnityEvent _onPerform;
    void Start()
    {
        _inputAction.Enable();
        _inputAction.performed += OnInputAction;
    }

    private void OnInputAction(InputAction.CallbackContext obj)
    {
        _onPerform.Invoke();
    }
 
}
